package www.openteam.com.bean;

import java.io.Serializable;

import www.openteam.com.R;
import www.openteam.com.ui.HomeFragmet;

/**
 * Created by OT on 2017-08-30.
 */

public enum OTPrdctnMngmnt implements Serializable {
    WORKORDER(0, R.string.work_order, R.drawable.tab_icon_workorder,
            HomeFragmet.class, R.array.workorder, "PD0001"),

    SENDRCV(1,R.string.prdctnMngmnt_SendReciver, R.drawable.tab_icon_sendrcv,
            HomeFragmet.class, R.array.orderapproval, "DD0001"),
    STOCKTAK(2,R.string.stock_tak, R.drawable.tab_icon_stock_tak,
            HomeFragmet.class, R.array.orderapproval, "DD0001");
            ;

    //    SENDRCHECK(2,R.string.SendRCheckName, R.drawable.tab_icon_sendrcheck, SendRCheckFragment.class,
//        R.array.inventoryquery,"ST0009");
    private int i;
    private int resName;
    private int resIcon;
    private Class<?> clz;
    private int resDetail;
    private String appAuthority; //权限

    OTPrdctnMngmnt(int i, int resName, int resIcon, Class<?> clz, int resDetail, String appAuthority) {
        this.i = i;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
        this.resDetail = resDetail;
        this.appAuthority = appAuthority;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }

    public int getResDetail() {
        return resDetail;
    }

    public void setResDetail(int resDetail) {
        this.resDetail = resDetail;
    }

    public String getAppAuthority() {
        return appAuthority;
    }

    public void setAppAuthority(String appAuthority) {
        this.appAuthority = appAuthority;
    }

    @Override
    public String toString() {
        return super.toString();
    }

}

